using UnityEngine;
using System.Collections;

public class GameMain : MonoBehaviour {

	public Load load;
	public Timer timer;
	void Start()
	{
		timer.enabled = false;
	}
	
	void OnGUI()
	{
		if (GUI.Button(new Rect(Screen.width/2-50, Screen.height/3, 100, 40), "Empezar") || (Input.GetKeyUp(KeyCode.Return) && Event.current.isKey))
		{
			timer.enabled = true;
			load.LoadLevel();
			enabled= false;
		}
	}
}
